﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SnippetBox.Web.Models {
    public class LoginModel {
        public LoginModel(string username) {
            Username = username;
        }

        public LoginModel() {}

        [Required(ErrorMessage = "Please fill in a username."), MaxLength(100)]
        public string Username { get; set; }

        [Required(ErrorMessage = "Please fill in a password."), MaxLength(100)]
        public string Password { get; set; }
    }
}